﻿using Sx.Mall.WebContract.Dto;
using Mall.Infrastructure.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sx.Mall.WebContract
{
   public interface IProductService
    {
       /// <summary>
       /// 添加产品
       /// </summary>
       /// <param name="dto"></param>
       /// <returns></returns>
       CommonResult Add(ProductDto dto);

       /// <summary>
       /// 修改产品
       /// </summary>
       /// <param name="dto"></param>
       /// <returns></returns>
       CommonResult Update(ProductDto dto);

       /// <summary>
       /// 删除产品
       /// </summary>
       /// <param name="ids"></param>
       /// <returns></returns>
       CommonResult Delete(List<int> ids);

       /// <summary>
       /// 查询产品
       /// </summary>
       /// <param name="dto"></param>
       /// <returns></returns>
       PageResult<ProductDto> GetList(ProductDto dto);

    }
}
